import React, { Component } from 'react'
import '../fonts/iconfont.css'
import './header.css'
class Header extends Component {
    //需父组件传递goback回退
    render() {
        console.log(this.props)
        return (
            <div id="publicHead">
                <span className="iconfont icon-houtui" onClick={this.props.goback}></span>
                <span>{this.props.category}</span>
                <span className="iconfont icon-paihangbang"></span>
            </div>
        )
    }
}
export default Header